package com.jjy.service.impl;

import com.jjy.entry.Flight_Tickets;
import com.jjy.mapper.FlightMapper;
import com.jjy.pojo.FlightsTwoAirports;
import com.jjy.service.FlightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class FlightServiceImpl implements FlightService {

    @Autowired
    private FlightMapper flightMapper;

    @Override
    public ArrayList<FlightsTwoAirports> select(FlightsTwoAirports flightsTwoAirports) {
        return flightMapper.select(flightsTwoAirports);
    }

    @Override
    public ArrayList<Flight_Tickets> selectTickets(int id) {
        return flightMapper.selectTickets(id);
    }
}
